package com.woniu.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 公共的分页响应对象
 * @author tarnett
 */
@ApiModel("分页数据响应对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> {
    @ApiModelProperty("总记录数")
    private Long total;
    @ApiModelProperty("分页数据")
    private List<T> data;
}
